<template>
  <div>
    <el-pagination style="margin-top: 25px;" background @size-change="sizeChange"
                   @current-change="numChange"
                   :page-sizes="[2, 5, 10, 20]"
                   :page-size="10"
                   layout="total, sizes, prev, pager, next, jumper"
                   :total="total">
    </el-pagination>
  </div>
</template>

<script>
export default {
  props: {
    total: {
      type: Number,
      default: 0
    }
  },
  methods: {
    sizeChange(val) {
      this.$emit('sizeChange', val)
    },
    numChange(val) {
      this.$emit('numChange', val)
    }
  }
}
</script>

<style scoped>

</style>
